package Test03;
/**
 * 测试
 */
public class Test {
    public static void main(String[] args) {
        Doctor d = new Doctor("医生","华佗",18,"强盗");
        Farmer f = new Farmer("农民","二狗",50,"士兵");
        Hunter h = new Hunter("猎人","光头强",27,"士兵");
        Robber r = new Robber("强盗","阿里巴巴",67,"农民");
        Soldier s = new Soldier("士兵","美国队长",99,"强盗");
        d.treat();
        f.attack();
        f.mine();
        f.treat();
        h.attack();
        h.hunt();
        r.rob();
        s.defend();
        d.intor();
        f.intor();
        h.intor();
        r.intor();
        s.intor();
    }
}
